import os
import pathlib

workpath = pathlib.Path(__file__).parent.parent
targetfile = workpath.joinpath('提问.md')
with open(targetfile, 'w') as fp:
    for fname in ['l0n0l2fa/main.py']:
        with open(workpath.joinpath(fname)) as fp2:
            fp.write(f'# {fname}\n')
            fp.write(f'```python\n')
            fp.write(fp2.read())
            fp.write(f'\n```\n')
